# -*- codeing = utf-8 -*-
# @Time: 2022/3/2 2:08
# @Author: Foxhuty
# @File: get_vegetables_price.py
# @Software: PyCharm
# @Based on python 3.10

import requests
from bs4 import BeautifulSoup

url="http://www.xinfadi.com.cn/priceDetail.html"
respond=requests.get(url)
# print(respond.text)

page=BeautifulSoup(respond.text,'html.parser')
# print(page)
table_div=page.find('div',class_='tbl-body')
table=table_div.find('tbody',attrs={'id':'tableBody'})
# print(table)
trs=table.find_all('tr')
print(trs)